package cn.uc.ucgc.community.upgrade;

import java.io.File;

public class AppFiles {
    private static final String EMPTY_PATH = "";
    /**
     * 旧版本的主目录
     */
    public static File oldVerHomeFile;

    /**
     * 新版本的主目录
     */
    public static File newVerHomeFile;

    /**
     * conf文件件的主目录
     */
    public static File confHomeFile;
    
    public static String getOldVerHomePath()
    {
        if(null == oldVerHomeFile)
        {
            return EMPTY_PATH;
        }
        try {
            return oldVerHomeFile.getAbsolutePath();
        } catch (Exception e) {
            
        }
        return EMPTY_PATH;
    }
    
    public static String getNewVerHomePath()
    {
        if(null == newVerHomeFile)
        {
            return EMPTY_PATH;
        }
        try {
            return newVerHomeFile.getAbsolutePath();
        } catch (Exception e) {
            
        }
        return EMPTY_PATH;
    }
}
